import axios from 'axios'
import urls from './urls'
import baseUrl from '@/api/baseUrl'
const header = {
    'Content-Type': 'multipart/form-data'
}
const upload = {
    baseUrl,
    yzhFileUpload: urls.yzhFile,
    img (data) {
        return axios.post(urls.img, data, { headers: header })
    },
    spuSku (data) {
        return axios.post(urls.spuSku, data, { headers: header })
    },
    good (data) {
        return axios.post(urls.good, data, { headers: header })
    },
    attach (data) {
        return axios.post(urls.attach, data, { headers: header })
    },
    zip (data) {
        return axios.post(urls.zip, data, { headers: header })
    },
    uploadyzhFile (data) {
        return axios.post(urls.yzhFile, data, { headers: header })
    }
}
export default upload
